﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SocialFront.Entities;
using SocialFront.Providers.Member;
using SocialFront.Providers.Relationship;

namespace SocialFront.Web.usercontrols.Membership
{
    public partial class AddCurrentMemberAsFan : System.Web.UI.UserControl
    {
        public Member member = RelationshipProvider.Provider.GetMemberRelatedToCurrentNode()[0];
        protected void Page_Load(object sender, EventArgs e)
        {
            if(member.LoginName == MemberProvider.Provider.GetCurrentMember().LoginName)
                this.Visible = false;
        }

        protected void lbFamMember_Click(object sender, EventArgs e)
        {
            //if (members.Count > 0)
                RelationshipProvider.Provider.CreateFansOfMember(member.Id);
        }
    }
}